<!DOCTYPE html>
<html>
<head>
	<title>N币商城</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta name="viewport" content="width=device-width,user-scalable=no" />
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="<?php echo $this->config->item('public_url');?>/css/common.css">
	<link rel="stylesheet" type="text/css" href="<?php echo $this->config->item('public_url');?>/css/index.css"></head>
</head>

<body>
	<!--  <div class="header">
		<div class="back">
			<a href="javascript:;"></a>
		</div>
		N币商城
		<div class="portrait">
			<a href="my_order.html">
				<img src="<?php echo $this->config->item('public_url');?>/images/banner.png" alt=""></a>
		</div>
	</div>-->
	<div class="index_content">
		<div class="content_tag">
		
			<ul>
				<li>
					<a href = "<?= site_url('Npoint_store/Npoint/npoint_record?type=1&page=1')?>"><img src="<?php echo $this->config->item('public_url');?>/images/n_1.png" alt="">
					N币
					<span><?php echo $npoint_count;?></span>
					</a>
				</li>
				<li>
					<img src="<?php echo $this->config->item('public_url');?>/images/n_2.png" alt="">
					等级
					<span>LV<?php echo $user_level;?></span>
				</li>
			</ul>
		</div>
		 <div class="banner">
			<a href = "<?= site_url('Npoint_store/Slots/slots_index')?>"><img src="<?php echo $this->config->item('public_url');?>/images/slots.png" alt=""></a>
		</div>
		<div class="title">兑换专区</div>
		<div class="zhuanqu">
			<ul id="zhuanqu_list">
			<?php 
			
			if (isset($product_lst)){?>
    			 <?php 
    			 foreach ($product_lst as $v):?>
    				
    				<li>
        				<a href = "<?= site_url('Npoint_store/Product/product_detail?product_id='.$v['product_id'])?>">
    						<div class="zhuanqu_listimg"><img src="<?php echo $v['thumb_img']?>" alt=""></div>
    						<p><?php echo $v['title'] ?></p>
    						<div class="zhuanqu_des">
    							<img src="<?php echo $this->config->item('public_url');?>/images/4_19.png" alt="">
    							<?php echo $v['npoint'] ?>
    							<!-- <span><?php echo $v['price'] ?></span> -->
    						</div>
    						<?php if($v['user_level'] != '0'){ ?>
    						    <div class="dengji">
    							<div id="triangle_left"></div>
    							LV<?php echo $v['user_level'];?>以上专享
    						</div>
    						   
    						<?php }?>
    						</a>
    				</li>
    				
    				 <?php endforeach;?>
				 <?php }?>
			</ul>

			<div  class="Loading">Loading...</div>
		</div>
	</div>
	<script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/jquery-3.2.1.min.js"></script>
	<script>
		var url = "<?= site_url('Npoint_store/Index/index_page')?>";
		var href = "<?= site_url('Npoint_store/Product/product_detail?product_id=')?>";
		var imgSrc = "<?php echo $this->config->item('public_url');?>";
	</script>
	<script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/index.js"></script>
</body>
</html>